//
//  UINavigationBar+AlphaExtension.h
//  ViewContrerCategary
//
//  Created by Hongwei Wang on 2019/2/13 .
//  Copyright © 2019 Hongwei Wang. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UINavigationBar (AlphaExtension)

/**
 隐藏底线
 */
@property (nonatomic, assign) BOOL hiddenBottom;
/**
 更改导航栏颜色和图片
 
 @param color 颜色
 @param image 图片
 */
- (void)setBarBackgroundColor:(nullable UIColor *)color image:(nullable UIImage *)image;

/**
 更改透明度
 
 @param alpha 导航栏透明度
 */
- (void)setBarAlpha:(CGFloat)alpha; // 0 ~ 1

/**
 导航栏背景高度
 注意*这里并没有改导航栏高度，只是改了自定义背景高度
 @param height 高度
 */
- (void)setBarMyLayerHeight:(CGFloat)height;

- (void)setImagePosition:(CGPoint)position;
- (void)setImageBottomLeft:(CGPoint)bottomleft;
/**
 隐藏底线
 */
//- (void)setBarBottomLineHidden:(BOOL)hidden;

//还原回系统导航栏
- (void)setBarToBeSystem;
@end

#pragma mark -- 自定义导航栏层
@interface MyNavView :UIView
@property (nonatomic, assign) BOOL      hiddenBottomLine;
@property (nonatomic, strong) UIColor   * _Nullable backColor;
@property (nonatomic, strong) UIImage   * _Nullable backImage;
@property (assign, nonatomic) BOOL translucent;
- (void)setImagePosition:(CGPoint)position;
- (void)setImageBottomLeft:(CGPoint)bottomleft;
@end

NS_ASSUME_NONNULL_END
